From: Parth Dixit Date: Mon, 18 Jan 2016 13:55:23 +0000 (+0100) Subject: acpi/pmstat: build for x86 only X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~1947 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=0fc47845fa66597a4dab195820a0a3c829c196fa;p=xen.git acpi/pmstat: build for x86 only Pmstat is currently not supported for ARM in Xen. Configure and build pmstat for x86 architecture only. Signed-off-by: Parth Dixit Signed-off-by: Shannon Zhao Acked-by: Jan Beulich --- diff --git a/xen/common/sysctl.c b/xen/common/sysctl.c index a3007b86f0..16240245ae 100644 --- a/xen/common/sysctl.c +++ b/xen/common/sysctl.c @@ -171,7 +171,7 @@ long do_sysctl(XEN_GUEST_HANDLE_PARAM(xen_sysctl_t) u_sysctl) op->u.availheap.avail_bytes <<= PAGE_SHIFT; break; -#ifdef CONFIG_HAS_ACPI +#if defined (CONFIG_HAS_ACPI) && defined (CONFIG_HAS_CPUFREQ) case XEN_SYSCTL_get_pmstat: ret = do_get_pm_info(&op->u.get_pmstat); break; diff --git a/xen/drivers/acpi/Makefile b/xen/drivers/acpi/Makefile index d8a42995a6..fb6dfc3d3a 100644 --- a/xen/drivers/acpi/Makefile +++ b/xen/drivers/acpi/Makefile @@ -5,7 +5,7 @@ subdir-$(CONFIG_X86) += apei obj-bin-y += tables.init.o obj-$(HAS_NUMA) += numa.o obj-y += osl.o -obj-y += pmstat.o +obj-$(CONFIG_HAS_CPUFREQ) += pmstat.o obj-$(CONFIG_X86) += hwregs.o obj-$(CONFIG_X86) += reboot.o